package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.controller.BaseController;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.serve.domain.NursingProject;
import com.zzyl.serve.dto.NursingProjectDTO;
import com.zzyl.serve.service.INursingProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *
 * @Author xiqi
 */
@RestController
@RequestMapping("/member/orders")
public class MemberOrdersController extends BaseController {
    @Autowired
    private INursingProjectService nursingProjectService;
    @GetMapping("/project/page")
    public TableDataInfo getMemberOrdersTableData(NursingProjectDTO dto) {
        startPage();
        List<NursingProject> list = nursingProjectService.getMemberOrdersTableData(dto);
         return getDataTable(list);
}
}
